Skip to content

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #6551.

Briefly, we allow setting the colour/linetype/linewidth of the confidence bands in geom_smooth().
A demonstration:

devtools::load_all("~/packages/ggplot2/")
#> ℹ Loading ggplot2

ggplot(mpg, aes(displ, hwy, fill = drv)) +
  geom_smooth(
    band.colour = "black",
    band.linetype = 3,
    band.linewidth = 0.5
  )
#> `geom_smooth()` using method = 'loess' and formula = 'y ~ x'

Created on 2025-09-26 with reprex v2.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request:Add some parameters to geom_smooth to adjust the properties of the lines at the edges of the confidence intervals.
1 participant